home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
simula
/
books
/
books.lha
/
kirkerud
/
isochar.sim
< prev
next >
Wrap
Text File
|
1993-08-16
|
809b
|
30 lines
! Example 3.6;
begin
integer charnumber;
outtext("The ISO set consists of 256 characters.");
outimage;
outtext("The ones with rank from 32 to 126 are listed below.");
outimage;
outtext("Each character is preceded by its ISO rank.");
outimage;
charnumber := 32;
! 32 is the rank of the first printable ISO character;
while charnumber le 126 do
! 126 is the rank of the last printable ISO character;
begin
if rem(charnumber, 4) = 0 then
begin outimage; outtext(" ") end;
! This gives a new line which starts with some blanks
! for every fourth character;
outint(charnumber, 7); outtext(": ");
outchar(isochar(charnumber));
charnumber := charnumber + 1;
end;
outimage; outimage;
end